package com.sy.behavioral.state;

/**
 * 与策略模式不同的地方在于状态的切换
 */
public class Team {

    private GameSate gameSate;



    public void win() {
        System.out.println("比赛已经开始");
        gameSate.state();
    }

    public void setGameSate(GameSate gameSate) {
        this.gameSate = gameSate;
    }
}
